package com.example.project.entity;



import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.example.project.enums.ReviewStateEnum;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;


import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;

@ApiModel(value = "Review", description = "Review")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Review implements Serializable {
    private static final long serialVersionUID = -94817790839975318L;

    @ApiModelProperty("工作流id")
    private Long id;

    @ApiModelProperty("审核任务id")
    private Long workId;

    @ApiModelProperty("审核状态")
    private ReviewStateEnum state;

    @ApiModelProperty("审核人id")
    private Long reviewId;

    @ApiModelProperty("审核理由")
    private String reviewReason;

    @ApiModelProperty("审核时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime reviewTime;

}

